package cn.com.hfuu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.com.hfuu.module.user;

public interface userMapper {
    int deleteByPrimaryKey(String userId);

    int insert(user record);

    int insertSelective(user record);

    user selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(user record);

    int updateByPrimaryKey(user record);
    
    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    user selectByUsername(String userName);

    
	List<user> selectAllpage(int start,int limit); 
	
	List<user> selectAll();
	
	List<user> searchUserpage(@Param("username")String username, @Param("userid")String userId,@Param("userstate") int userstate,@Param("current")int current,@Param("size")int size );

	List<user> searchUser(@Param("username")String username, @Param("userid")String userId,@Param("userstate") int userstate);

	user selectByUsernameId(@Param("username")String username,@Param("userid")String id);
    
	int deleteByPrimaryKeyusers(String[] userId);

	List<user> selectyg(String id);
}